package com.mccken.springframework.factory.config;

import com.mccken.springframework.PropertyValues;

import lombok.Data;

/**
 * @program: mccken-collect
 * @description:
 * @author: mccken
 * @create: 2022-11-19 22:10
 **/
@Data
public class BeanDefinition {
	
	private Class beanClass;
	
	private PropertyValues propertyValues;
	
	public BeanDefinition(Class beanClass) {
		this.beanClass = beanClass;
		this.propertyValues = new PropertyValues();
	}
	
	public BeanDefinition(Class beanClass, PropertyValues propertyValues) {
		this.beanClass = beanClass;
		this.propertyValues = propertyValues != null ? propertyValues : new PropertyValues();
	}
}